<?php
/**
 * Created by PhpStorm.
 * User: Pico_Dragon
 * Date: 15/12/2014
 * Time: 04:28
 */
include "../../db/dbConnect.php";
error_reporting(E_ALL && ~ E_NOTICE);

if($_SERVER['REQUEST_METHOD'] == 'POST' && $_POST['userName'] && $_POST['userPass'] && $_POST['email'] ) {


    $sql = "update u_user set deleted=1 where iduser='" . $_POST['idu'] . "'";

    if (mysql_query($sql)) {
        echo "Bạn vừa xóa thành công ";
    }else{
        echo mysql_error();
        exit();
    }
}
?>